Run JS
Command Prototype
sRet = WebBrowser.RunJS(hWeb,sScript,bSync,optionArgs)
Command Description
Run JS, and return results from JS run (string format)
Parameter Description
- Required Parameter
- hWeb--Browser's handle string returned with WebBrowser.Create or WebBrowser.Bind functions
- sScript--JS script content to run
- bSync--Whether to run synchronously; if true is passed, it will wait for JS run to finish to return and continue, if false is passed, it will return immediately when JS starts to run
- Optional Parameter
- bContinueOnError--Specify whether automation should continue if the activity throws an error. This field only supports Boolean values (True, False). The default is False
- iDelayAfter--The delay in milliseconds after the activity is executed. The default is 300 milliseconds
- iDelayBefore--The delay in milliseconds before the activity starts any operation. The default is 200 milliseconds
- return
- sRet--The variable used to save the output of the function call